@echo off
REM 声明采用UTF-8编码
chcp 65001

echo "选择需求..."
echo "1.定版"
echo "2.拉取新分支"

set script_dir=脚本所在目录
set dir_path=项目1路径,项目2路径

set /p input=Please select a number:
echo "input branch"
set /p branch=
echo "branch: %branch%"

echo "input new branch"
set /p new_branch=
echo "new branch: %new_branch%"
if /i '%input%'=='1' for %%i in (%dir_path%) do cd /d %%i & call %script_dir%/release.bat %branch%,%new_branch%
if /i '%input%'=='2' for %%i in (%dir_path%) do cd /d %%i & call %script_dir%/new_branch.bat %branch%,%new_branch%

pause